/*
** writen by hanv
** n2.vietha@gmail.com
*/
package vn.vng.research.fsd.data;

import java.io.Serializable;
import java.util.Date;

import vn.vng.research.fsd.Configuration;

public class SearchResult implements Serializable{
	
	private long id;
	private String queries;
	private FacetedTopDocs topDocs;
	private Date time;
	private long delay;
	private int[] clickOutID;
	public SearchResult(String queries, FacetedTopDocs topDocs,
			Date time, long delay) {
		super();
		this.id = Configuration.nextSearchID();
		this.queries = queries;
		this.topDocs = topDocs;
		this.time = time;
		this.delay = delay;
		this.clickOutID = null;
	}
	public SearchResult(long id, String queries, FacetedTopDocs topDocs,
			Date time, long delay) {
		super();
		this.id = id;
		this.queries = queries;
		this.topDocs = topDocs;
		this.time = time;
		this.delay = delay;
		this.clickOutID = null;
	}
	public String getQueries() {
		return queries;
	}
	public void setQueries(String queries) {
		this.queries = queries;
	}
	public FacetedTopDocs getTopDocs() {
		return topDocs;
	}
	public void setTopDocs(FacetedTopDocs topDocs) {
		this.topDocs = topDocs;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public long getDelay() {
		return delay;
	}
	public void setDelay(long delay) {
		this.delay = delay;
	}
	public int[] getClickOutID() {
		return clickOutID;
	}
	public void setClickOutID(int[] clickOutID) {
		this.clickOutID = clickOutID;
	}
	public long getId() {
		return id;
	}
	
	
}
